package com.lg.feign.service;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "student",fallbackFactory = StudentServiceFallbackFactory.class)
public interface StudentFeignService {
    @RequestMapping(value = "/students")
    public String getAllStudents();
    @RequestMapping(value = "/student/{sno}")
    public String getStudentBySno(String sno);
}
